{% extends "base_generic.html" %}
{% block content %}
        <h1>Gallery tags</h1>
        <form method="post" action="/admin/gallerytags/{{ gallerytag.key }}/save/">
          <div class="line">
            <div class="field">
              <label>Nombre:</label>
              <input type="text" id="name" name="name" value="{{ name }}" />
            </div>
            <div class="field">
              <label>Slug:</label>
              <input type="text" id="slug" name="slug" value="{{ slug }}" />
            </div>
            <div class="field">
              <input type="submit" value="Guardar" id="save" name="save" />
            </div>
          </div>

        </form>
        <table class="imgswithoutborders">
          {% for tag in tags %}
          <tr>
             <td>{{ tag.name }}</td>
             <td>{{ tag.slug }}</td>
             <td><a href="/admin/tags/{{ tag.key }}/edit/">Editar</a></td>
             <td><a href="/admin/tags/{{ tag.key }}/delete/">Borrar</a></td>
          </tr>
          {% endfor %}
        </table>

{% endblock %}
